//
//  DBSet.m
//  FMDataTable
//
//  Created by bing.hao on 16/3/9.
//  Copyright © 2016年 bing.hao. All rights reserved.
//

#import "DBSet.h"

@implementation DBSet

- (FMDTContext *)userInfoModel {
    /**
     *  缓存FMDTContext对象,第一次创建时会自动生成表结构
     *  默认存储在默认会存储在沙盒下的Library/Caches/{Bundle Identifier}.db,
     *  如果想要对每一个用户生成一个库,可以自定义Path,
     *  使用[self cacheWithClass: dbPath:]方法
     */
    return [self cacheWithClass:[FCUserModel class]];
    
}
-(FMDTContext *)walletTypesModel{
    
    return [self cacheWithClass:[FCWalletTypesModel class]];
}
-(FMDTContext *)walletsModel{
    
    return [self cacheWithClass:[FCWalletsModel class]];
}
-(FMDTContext *)balanceModel{
    
    return [self cacheWithClass:[FCBalanceModel class]];
}
-(FMDTContext *)allAddressModel{
    
    return [self cacheWithClass:[FCAllAddressModel class]];
}
-(FMDTContext *)exchangeRatesModel{
    
    return [self cacheWithClass:[FCExchangeRatesModel class]];
}
-(FMDTContext *)currentResultModel{
    
    return [self cacheWithClass:[FCCurrentResultModel class]];
}
-(FMDTContext *)historyDetaiClicklModel{
    
    return [self cacheWithClass:[FCTransactionHistoryDetaiClicklModel class]];
}
-(FMDTContext *)CCHStatusModel{
    
    return [self cacheWithClass:[FCCCHStatusModel class]];
}
@end
